package com.lushu.chapitre1.graphics.elements.animals {
import com.lushu.chapitre1.graphics.elements.MovableElement;
import com.lushu.chapitre1.graphics.elements.enums.AnimatedObjectType;

public class Animal extends MovableElement {

    public function Animal(animatedBitmapType:String, speed : Number) {
        super(animatedBitmapType);
        _speed = speed;
        init();
    }

    private var _unitMoveType:String;

    private function init():void {
        switch (_animatedBitmapType) {
            case AnimatedObjectType.POUSSIN:
                _unitMoveType = "moderate";
                break;
            case AnimatedObjectType.COQ:
                _unitMoveType = "slow";
                break;
            case AnimatedObjectType.POULE:
                _unitMoveType = "flier";
                break;
        }
    }

    public function get unitMoveType():String {
        return _unitMoveType;
    }
}
}